package fr.uparis10.miage.m1p1.employes;

import java.util.Date;

import fr.uparis10.miage.m1p1.core.Employe;

public class Secretaire extends Employe {

	/* Constructors - START */
	public Secretaire() {
		super();
	}

	public Secretaire(int preferedEmplId, long preferedNumSS) {
		super(preferedEmplId, preferedNumSS);
	}

	public Secretaire(int preferedEmplId, long preferedNumSS, Date joinDate) {
		super(preferedEmplId, preferedNumSS, joinDate);
	}

	/* Constructors - END */

	public int calcBonus() {
		double bonusRate;
		switch (indice) {
		case A:
			bonusRate = 0.08;
			break;
		case B:
			bonusRate = 0.04;
			break;
		case C:
			bonusRate = 0.03;
			break;
		default:
			bonusRate = 0;
		}
		double bonus = salaire * bonusRate;
		return (int) bonus;
	}
}